import django_filters
from .models import *

class FinanceForLesseeFilter(django_filters.rest_framework.FilterSet):
    """过滤器"""

    startTime = django_filters.CharFilter(field_name='dateValue', help_text="开始时间", lookup_expr='gte')
    endTime = django_filters.CharFilter(field_name='dateValue', help_text="结束时间", lookup_expr='lte')
    class Meta:
        model = FinanceForLessee
        fields = '__all__'